/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.dao;

import com.rbh.risk.entity.Role;
import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 *
 * @author M
 */
public interface RoleDao {

    public void insert(Role role) throws DataAccessException;

    public void update(Role role) throws DataAccessException;

    public void delete(Role role) throws DataAccessException;

    public Role getById(Integer roleId) throws DataAccessException;

    public List<Role> getAll() throws DataAccessException;

    public Role getDefaultRole() throws DataAccessException;
}